package com.zrrd.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author wanjl
 * @since 2024-09-13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="Goods对象", description="")
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "商品名称")
    private String title;

    @ApiModelProperty(value = "分类id")
    private Integer categoryId;

    @ApiModelProperty(value = "商品封面图")
    private String cover;

    @ApiModelProperty(value = "平均评分")
    private Float rating;

    @ApiModelProperty(value = "总销量")
    private Integer saleCount;

    @ApiModelProperty(value = "评论数")
    private Integer reviewCount;

    @ApiModelProperty(value = "最低sku价格")
    private BigDecimal minPrice;

    private BigDecimal minOprice;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "库存")
    private Integer stock;

    @ApiModelProperty(value = "库存预警")
    private Integer minStock;

    @ApiModelProperty(value = "是否审核 0审核中 1通过 2拒绝")
    private Boolean ischeck;

    @ApiModelProperty(value = "状态 0仓库1上架")
    private Boolean status;

    @ApiModelProperty(value = "库存显示 0隐藏 1显示")
    private Boolean stockDisplay;

    @ApiModelProperty(value = "运费模板id")
    private Integer expressId;

    @ApiModelProperty(value = "sku类型：0单一，1多规格")
    private Boolean skuType;

    @ApiModelProperty(value = "单一规格值")
    private String skuValue;

    @ApiModelProperty(value = "商品详情")
    private String content;

    @ApiModelProperty(value = "折扣设置")
    private Float discount;

    private Integer createTime;

    private Integer updateTime;

    private Integer deleteTime;

    @ApiModelProperty(value = "排序")
    private Integer orderId;

    @ApiModelProperty(value = "是否删除(移入回收站)，1为未删除，0为已删除")
    private Integer del;


}
